﻿
//Author: 张亚涛
//createtime:2015-12-24 18:32:49
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;

namespace BLL
{
    /// <summary>
    /// 该类提供了一系列操作 "CouponsScheme" 表的方法;
    /// </summary>
    public partial class CouponsSchemeService
    {
        #region .对本表的维护.
        #region select data
        /// <summary>
        /// 返回CouponsScheme表的所有数据  
        /// </summary>
        /// <returns></returns>        
        public static List<CouponsScheme> GetAllCouponsScheme()
        {
            return CouponsSchemeBase.GetAllCouponsScheme();
        }
        /// <summary>
        /// 根据CouponsScheme表的SchemeID字段返回数据  
        /// </summary>
        /// <param name="schemeID">SchemeID</param>
        /// <returns></returns>        
        public static CouponsScheme GetCouponsSchemeBySchemeID(int schemeID)
        {
            return CouponsSchemeBase.GetCouponsSchemeBySchemeID(schemeID);
        }
        #endregion
        #region delete data
        /// <summary>
        /// 根据CouponsScheme表的SchemeID字段删除数据 
        /// </summary>
        /// <param name="schemeID">schemeID</param>
        /// <returns>返回受影响的行数</returns>
        public static int DeleteCouponsSchemeBySchemeID(int schemeID)
        {
            return CouponsSchemeBase.DeleteCouponsSchemeBySchemeID(schemeID);
        }
        #endregion
        #region update data
        /// <summary>
        /// 根据CouponsScheme表的SchemeID字段更新数据 
        /// </summary>
        /// <param name="schemeID">SchemeID</param>
        /// <param name="CouponsScheme">couponsScheme</param>
        /// <returns>返回受影响的行数</returns>
        public static int UpdateCouponsSchemeBySchemeID(CouponsScheme couponsScheme)
        {
            return CouponsSchemeBase.UpdateCouponsSchemeBySchemeID(couponsScheme);
        }
        #endregion
        #region insert data
        /// <summary>
        /// 向CouponsScheme表插入一条数据，插入成功则返回自增列数值，插入不成功则返回-1 
        /// </summary>
        /// <param name="couponsScheme">CouponsScheme</param>        
        /// <returns></returns>
        public static int AddCouponsScheme(CouponsScheme couponsScheme)
        {
            return CouponsSchemeBase.AddCouponsScheme(couponsScheme);
        }
        #endregion
        #endregion

        #region .SQL语句汇总.
        /// <summary>
        /// 返回CouponsScheme表的所有数据（SQL语句） 
        /// </summary>
        /// <returns></returns>        
        public static string GetAllCouponsScheme_SQL()
        {
            return CouponsSchemeBase.GetAllCouponsScheme_SQL();
        }
        #endregion
    }
}